info = 'ABCDefghIJKLM123456XYZ789'

print(info[:10])
print(info[-10:])
print(info[10:20])
print(info[-20:-10])
print(info[:10:2])
print(info[::5])
print(info[:])
print(info[-2:])
print(info[::-1])